|
|
|
|
<List Box>.Select (Function) In french: <Liste>.Select Returns the index of the selected element in a List Box, ListView or Combo Box control. Reminder: The selected element corresponds to the current element onto which the selection bar is displayed. Remark: <List Box>.Select can be used on: - List Box controls based on a data file or populated programmatically,
- single-selection or multi-selection List Box controls.
// Index of the selected element in "LIST_CustomerList" ResElementIndex = LIST_CustomerList.Select()
// Rows selected in a multi-selection List Box control i is int = 1 SelectedRowIndex is int SelectedRowIndex = LIST_List1.Select(1) WHILE SelectedRowIndex <> -1 Trace("Row #" + SelectedRowIndex + " is selected") i++ SelectedRowIndex = LIST_List1.Select(i) END Â // Equivalent to: // FOR EACH SELECTED ROW OF LIST_List1 // Trace("Row #" + LIST_List1 + " is selected") // END
Syntax
<Result> = <List Box control>.Select([<Rank>])
<Result>: Integer - Index of the selected element in the specified List Box (or Combo Box) control,
- -1 if no element is selected.
For a multi-selection List Box control, the rank of the selected element must be specified <Rank>).
<List Box control>: Control name Name of List Box (or Combo Box) control to use. <Rank>: Optional integer Rank of selection for a multi-selection List Box control. If this parameter is not specified, the index of the first selected element is returned.For example: To retrieve the first selected element, the rank will be 1, to retrieve the second selected element, the rank will be 2, etc. Remarks Equivalence The following syntaxes are equivalent: Index is int Index = <List Box control> and
Index = <List Box control>.Select() Miscellaneous - To get the index of the element selected in a Table control, use <Table>.Select.
- <List Box>.Select can be used on a "Combo Box" table column.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|